﻿@model TheCup.CreateViewModel

@{
    ViewBag.Title = "Opret ny bruger";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<div class="page-header">
    <h1><span class="glyphicon glyphicon-user"></span> @ViewBag.Title</h1>
</div>

@using (Html.BeginForm()) 
{
    @Html.AntiForgeryToken()
    
    <div class="form-horizontal">
       
        @Html.ValidationSummary(true, "", new { @class = "text-danger" })
        
        @Html.EditorFor(model => model.UserName, new { htmlAttributes = new { @class = "form-control" } })
            
        @Html.EditorFor(model => model.Email, "String", new { htmlAttributes = new { @class = "form-control" } })
        
        @Html.EditorFor(model => model.Password, new { htmlAttributes = new { @class = "form-control" } })
        
        @Html.EditorFor(model => model.ConfirmPassword, new { htmlAttributes = new { @class = "form-control" } })
        
        <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
                <input type="submit" value="Create" class="btn btn-default" />
            </div>
        </div>
    </div>
}

<div>
    @Html.ActionLink("Tilbage til listen", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
    @Scripts.Render("~/bundles/jqueryval-unobtrusive")
}